﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerWeaponSetup : MonoBehaviour {

	//Setup the weapons

	//PopShot
	public GameObject PopShotPrefab; 		// The projectile prefab
	public int PopShotMax; 					// Maximum number of the projectile prefab

	public GameObject PopShotImpactPrefab; 	// The projectile hits another object prefab
	public int PopShotImpactMax; 			// Maximum number of the projectile hit prefab

	public GameObject PopShotFlashPrefab; 	// Prefab for weapon firing flash
	public int PopShotFlashMax;				// Maximum number of the firing flash prefab

	protected void Awake()
	{
		//Instantiate the max set number of prefabs

		for(int i = 0; i < PopShotMax; i++)
		{
			Instantiate(PopShotPrefab);
		}

		for(int i = 0; i < PopShotImpactMax; i++)
		{
			Instantiate(PopShotImpactPrefab);
		}

		for(int i = 0; i < PopShotFlashMax; i++)
		{
			Instantiate(PopShotFlashPrefab);
		}
	}

}
